<template>
   
</template>

<script>
import axios from 'axios'
export default {
    data() {
        return {
            columns: [],
            dataSource: [],
            selectedRowKeys: [],
            // 分页器
            ipagination: {
                current: 1,
                pageSize: 10,
                pageSizeOptions: ['10', '20', '30'],
                showTotal: (total, range) => {
                    return range[0] + '-' + range[1] + ' 共' + total + '条'
                },
                showQuickJumper: true,
                showSizeChanger: true,
                total: 0
            },
        }
    },
    mounted() {
        // 表头数据
        this.templateColumns()
    },
    methods: {
        // 获取表头数据
        templateColumns() {
            this.$nextTick(async () => {
                const result = await axios.get('/mock/tableTemplateAdd')
                this.columns = result.data.data
                // console.log(result, '模拟表头数据------------')
            })
        },
        onSelectChange(selectedRowKeys) {
            this.selectedRowKeys = selectedRowKeys;
        },
        confirm() { },
    }
}
</script>

<style></style>